

cmake_minimum_required(VERSION 3.2)



set(CMAKE_CXX_STANDARD 11)

set(BoostInc Boost/include/)

set(Inc include)

include_directories(${BoostInc})

include_directories(${Inc})

set(BoostLib boost_thread boost_log boost_system)
link_directories(Boost/lib/)




add_library(threadPoolImpl SHARED src/ThreadPoolImpl.cpp)
target_link_libraries(threadPoolImpl ${BoostLib})



add_executable(testThreadPool   testThreadPool.cpp)
# target_link_directories(testThreadPool ../Boost/lib/)
target_link_libraries(testThreadPool ${BoostLib} threadPoolImpl)

install(DIRECTORY Boost/lib
    DESTINATION .
)

install(DIRECTORY Boost/include/
    DESTINATION ./include
    )

install(DIRECTORY include/
    DESTINATION ./include
    )

install(TARGETS threadPoolImpl
    DESTINATION ./lib/
    )
